﻿
@using xiushen.Infrastructure
@model IEnumerable<xiushen.Domain.Category>
@foreach(var data in Model)
{
    var books = data.Attachment.Where(r => r.FileType == Constants.Book).Take(100);
         <div class="row alert margin-top">
        <div class="span2"><strong>@data.Name</strong></div>
        <div class="span2"><a href="@Url.Action("MoreBooks", new { categoryId = data.ID})">查看更多</a></div>
    </div>
    <div class="row">
        @foreach (var book in books)
        {
   
        <div class="span3">
           <a href="@Url.Action("PdfView", new { url = book.Url() })">@data.DisplayName</a> </div>
        }
    </div>
}